--con = freeswitch.EventConsumer("all")
--for e in (function() return con:pop(1) end) do
--    print("-----------------------------------")
--    event_name =  e:getHeader("Event_IVame")
--    print(event_name)
--    event_subclass = e:getHeader("Event-Subclass")
--    print(event_subclass)
--    if(event_name == "CUSTOM" and event_subclass == "lua:stopscript") then
--        print(event_name)
 --       freeswitch.consoleLog("INFO","--lua Script ["..argv[0].."] got stop meassage,Exiting--\n")
 --       break
 --   end
--end